package com.example.project.service;

import com.example.project.base.BaseService;
import com.example.project.entity.TAdmin;
import com.github.pagehelper.PageInfo;

import java.util.Map;

public interface TAdminService extends BaseService<TAdmin> {
    PageInfo<TAdmin> getAllAdminPageInfo(Integer pageNo,Integer pageSize);

    void updateAdminSort(Integer pkid,Integer sort,String type) throws Exception;

    Boolean addNewAdmin(TAdmin tAdmin,Integer roleId);
    void updateNewAdmin(TAdmin tAdmin,Integer roleId) throws Exception;

    Map<String,Object> getUserInfoById(Integer pkid);
}
